<!doctype html>
<html dir="ltr" lang="zh-CN">
<meta name="viewport" content="width=device-width, user-scalable=0, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
<head>
    <meta charset="UTF-8"/>
    <title>二维码编解码</title>
    <link rel="stylesheet" href="style.css"/>
</head>
<body>
<div id="header">
    <div class="inner clearfix">
        <h1>二维码编解码</h1>
        <div class="toggle">
            <a class="encode" href="#encode">编码</a><a class="decode" href="#decode">解码</a>
            <div class="navbg"></div>
        </div>
    </div>
</div>
<div id="qrdecode">
    <div class="box">
        <div class="panel preview">
            <span class="close">&times;</span>
            <canvas id="qrimg" width="300" height="300"></canvas>
        </div>
        <div class="panel upload">
            <input type="text" id="src-input"/>
            <p>拖拽，粘贴或者点击上传按钮</p>
            <div class="upimg">
                <label for="src-file"><span class="icon-upload"></span>上传文件</label>
                <input type="file" id="src-file"/>
            </div>
        </div>
        <div class="panel drop">
            <p>拖拽图片到这里</p>
        </div>
    </div>
    <div class="result">
        <div class="hd"><h3>解析结果</h3></div>
        <textarea id="result-text" readonly="true"></textarea>
    </div>
</div>
<div id="qrencode">
    <div id="input-area">
        <textarea id="input-text"></textarea>
        <div><button class="submit">提交编码</button></div>
    </div>
    <div class="resultbox">
        <img src="" id="resultimg"/>
        <div id="qrcanvas"></div>
    </div>
</div>
<div id="mask"><div class="mbox"></div></div>
<script src="../libs/jquery-2.0.0.min.js"></script>
<script src="../libs/qrbase.js"></script>
<script src="../libs/encode.js"></script>
<script src="../libs/decode.js"></script>
<script src="script.js"></script>
</body>
</html>
